<template>
  <div>
    <section>
      <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html">
              <img src="../../images/logo.png" alt="">
            </a>
          </div>

          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
              <li ><router-link to="/">首页</router-link></li>
              <li class="active"><a href="#">文章</a></li>
              <li><router-link to="/car/query">机动车查询</router-link></li>
              <li><router-link to="/test">测试</router-link></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
              <li>
                <form class="navbar-form navbar-left" role="search">
                  <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                  </div>
                </form>
              </li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
      </nav>


      <!--body wrapper start-->

      <router-view></router-view>
      <!--body wrapper end-->

      <!--footer section start-->
      <footer class="sticky-footer">
        @Woddp
      </footer>
      <!--footer section end-->

    </section>
  </div>
</template>
<script>
  export default{
    data(){
      return {
         userInfo:[],
      }
    },
    mounted: function(){

    },
    created: function(){

    },
    methods: {
      getUserInfo: function(){
        this.load.loading(true)
        this.$http.post('/admin/user/curr').then(function(response){
          this.load.loading(false)
          if(response.data.status){
             this.userInfo=response.data.data
          }
        },function(response){
        }).bind(this);
      }
    }
  }
</script>